StellarPay\Subscriptions\Models\Subscription A

Total Complexity 72
Dependencies 20
Dependents 46
Total lines 605
Lines of code 254
Logical lines of code 105
Comment lines 189
Methods 44
Properties 1

Methods 44

Method Rating Maintainability Complexity Lines of code
getFormattedNextBillingAt()
S
60 8 12
getLastRenewalOrder()
S
58 3 16
getPendingPaymentMessage()
S
57 2 18
canUpdate()
S
71 3 6
getStripeDashboardLink()
S
67 3 8
cancel()
S
68 3 7
calculateEndDate()
S
60 2 14
getTableName()
S
75 2 4
save()
S
69 2 7
getFormattedStatusLabel()
S
66 2 9
canCancel()
S
78 2 3
getLastPaymentMethod()
S
67 2 8
complete()
S
69 2 7
suspend()
S
69 2 7
totalCount()
S
75 2 4
updatePaymentMethod()
S
71 2 6
getFormattedBillingPeriod()
S
69 2 7
updateStatus()
S
72 2 6
calculateNextBillingDate()
S
62 1 12
getLastOrder()
S
79 1 3
canUpdatePaymentMethod()
S
65 1 10
getMetaTableName()
S
80 1 3
getMetaTableNameWithoutDBPrefix()
S
80 1 3
getCancellableSubscriptionStatuses()
S
69 1 8
deleteNewPaymentMethodForRenewal()
S
80 1 3
getNewPaymentMethodForRenewal()
S
80 1 3
saveNewPaymentMethodForRenewal()
S
79 1 3
isScheduleType()
S
78 1 3
hasEndDate()
S
80 1 3
getLastOrderAmount()
S
75 1 4
findByFirstOrderAndItemId()
S
71 1 6
create()
S
73 1 5
canUpdateStatus()
S
80 1 3
factory()
S
80 1 3
fromQueryBuilderObject()
S
80 1 3
query()
S
80 1 3
find()
S
79 1 3
removeCancelAtPeriodEnd()
S
80 1 3
getCustomerId()
S
82 1 3
findByTransactionId()
S
78 1 3
findByFirstOrderId()
S
78 1 3
delete()
S
80 1 3
findAllByFirstOrderId()
S
78 1 3
cancelAtPeriodEnd()
S
79 1 3